#import "head.h"
#import "sprite_game_object.h"

@interface SpriteGameEnemyBoss1Tail : SpriteGameObject
{
	b2Body *box2dBody_;
	b2Fixture *fixture_;
	CCSprite *image_;

	float lifePoint_;
	bool flagIsLeft_;
	bool flagActive_;
	bool flagInvincible_;
	bool flagRecover_;

	float maxLength_;
}

@property (nonatomic, readwrite) float tailY;
@property (nonatomic, readwrite) b2Fixture *fixture;
@property (nonatomic, readwrite) bool flagActive;
@property (nonatomic, readwrite) bool flagInvincible;

- (id)initSpriteGameEnemyTail:(bool)IsLeft;
- (void)tick:(ccTime)Time;
- (void)dealloc;

- (void)CreateBody;
- (void)DestroyBody;
- (b2Vec2)ComputeBodyPosition;

/*game state control
*/
- (void)Pause;
- (void)Resume;

- (void)Damage:(float)DamagePoint;
- (void)ActionAppear;
- (void)ActionDisappear;

- (void)CallBackActionAppearOver:(id)Sender;
- (void)CallBackActionDamageBackOver:(id)Sender;

@end
